//
//  CQCommonHeader.h
//  CQUtils
//
//  Created by Martin on 16/5/17.
//  Copyright © 2016年 com.runo. All rights reserved.
/**
    使用该框架只需要导入该头文件，添加系统的库有：libsqlite3.0.tbd
    
    该框架使用的第三方库有：
        SDWebImage
        AFNetWorking
        FMDB
        JSONModel
 */

#ifndef CQCommonHeader_h
#define CQCommonHeader_h

#import "CQCommon.h"

/**catagory*/
#import "NSDate+CQDate.h"
#import "NSString+CQString.h"
#import "UIImage+CQImage.h"
#import "Toast+UIView.h"
#import "UIView+YSTextInputKeyboard.h"
/**第三方库*/
#import "SDWebImageManager.h"

/**自己的工具类*/
#import "CQNUD.h"
#import "CQAFNetHelper.h"
#import "CQBaseViewController.h"
#import "CQBaseNavigationController.h"
#import "CQDBHelper.h"
#import "CQNavigationUtiles.h"
#import "CQNavigationItemFactory.h"
#import "CQButtonFactory.h"

/**屏幕尺寸*/
#define kScreenBounds ([[UIScreen mainScreen] bounds])
#define kScreenWidth (kScreenBounds.size.width)
#define kScreenHeight (kScreenBounds.size.height)

//导航栏高度
#define kNavigationHeight 64

//颜色处理
#define kMainColor kCustomerColor(194,84,95)
#define kWhiteColor [UIColor whiteColor]
#define kBlackColor [UIColor blackColor]
#define kGreenColor [UIColor greenColor]
#define kRedColor [UIColor redColor]
#define kOrangeColor [UIColor orangeColor]
#define kLightGrayColor [UIColor lightGrayColor]

    //自定义颜色
#define kCustomerColor(cqRed,cqGreen,cqBlue) [UIColor colorWithRed:cqRed/255.0f green:cqGreen/255.0f blue:cqBlue/255.0f alpha:1]

#define kCustomerColorAlpha(cqRed,cqGreen,cqBlue,cqAlpha) [UIColor colorWithRed:cqRed/255.0f green:cqGreen/255.0f blue:cqBlue/255.0f alpha:cqAlpha]
    //随机色
#define kArcColor [UIColor colorWithRed:arc4random()%256/255.0 green:arc4random()%256/255.0 blue:arc4random()%256/255.0 alpha:(arc4random()%50+30)/100.0f]
#define ISIOS7 ([UIDevice currentDevice].systemVersion.floatValue>=7.0?1:0)

#define kLog(cqMsg)  NSLog(@"%@",cqMsg)
/**本地化宏定义*/
#define kLocalString @"LocalString"//本地化文件名
#define kGetLocakString(cqkey) NSLocalizedStringFromTable(cqkey, kLocalString, nil)//获取本地化文字

#endif /* CQCommonHeader_h */
